package net.dopan.pigframe.demo.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;

/**
 * @author wufeihong
 * 活动图片墙
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("activity_photo_wall" )
public class ActivityPhotoWall extends Model<ActivityPhotoWall> {

    private static final long serialVersionUID = 1L;
    @TableId(value = "wall_id", type = IdType.AUTO)
    private long wallId;
    @TableField("activity_id" )
    private long activityId;
    @TableField("photo_url" )
    private String photoUrl;

    @Override
    protected Serializable pkVal() {
        return this.wallId;
    }
}
